import requestModel from '@/utils/request-model'
import { useModelStore } from '@/stores/model'

// 上传 .npy 文件并进行分类
export const classifyNpy = (data) => {
  const modelStore = useModelStore()
  console.log(modelStore.modelInfo.serverUrl);

  return requestModel({
    url: modelStore.modelInfo.serverUrl + '/classify',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data
  })
}